package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-2-28
 * Time: 8:27
 */
public class Test {
    public static void drawMap(Shape shape) {
        shape.draw();
    }

    public static void main(String[] args) {
        //Shape shape1 = new Shape();

        //Shape shape2 = new Rect();
        Rect rect = new Rect();
        drawMap(rect);
        drawMap(rect);

        rect.draw();
        rect.draw();

        drawMap(new Rect());
        drawMap(new Rect());

        new Rect().draw();
        new Rect().draw();

        //drawMap(new Cycle());
    }
}
